import cv2
import numpy as np

background = np.zeros((589, 786, 3), np.uint8)
dog = cv2.imread("../asset/dog.jpg")
print(dog.shape)

result = cv2.addWeighted(dog, 0.5, background, 0.5, 0)
while True:
    cv2.imshow('result', result)
    cv2.imshow('dog', dog)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()